package com.freedy.dataStructure.stack;

/**
 * @author Freedy
 * @date 2021/3/11 14:11
 */
public class Test {
    public static void main(String[] args) {
        PolandNotation calculator = new PolandNotation();
        String suffixExpression = calculator.infixExpressionToSuffixExpression("4.5+(25+3)*5-8/2");
        Double aDouble = calculator.calculate(suffixExpression);
        System.out.println("4.5+(25+3)*5-8/2的后缀表达式为:"+suffixExpression);
        System.out.println("4.5+(25+3)*5-8/2通过后缀表达式计算出的结果为:"+aDouble);
        String a= """
                """;
        System.out.println(a);
    }
}

